/**
 * @Description: 颜色工具类
 * @author Ldb
 * @date 2021-12-22
 */

/**
 * 随机获取颜色
 * @returns {string}
 */
export default function getRandomColor(): string {
  const colors = [
    '#7cb5ec',
    '#434348',
    '#90ed7d',
    '#f7a35c',
    '#8085e9',
    '#f15c80',
    '#e4d354',
    '#8085e8',
    '#8d4653',
    '#91e8e1',
    '#48D1CC',
    '#9ACD32',
    '#40E0D0',
    '#FF6347',
    '#FA8072',
    '#FF4500',
    '#000080',
    '#FFDAB9',
    '#7B68EE',
    '#FFB6C1',
    '#90EE90',
    '#F08080',
    '#ADD8E6',
    '#7CFC00',
    '#E6E6FA',
    '#F0E68C',
    '#4B0082',
    '#CD5C5C',
    '#FF69B4',
    '#008000',
    '#808080',
    '#DAA520',
    '#FFD700',
    '#FF00FF',
    '#228B22',
    '#B22222',
    '#1E90FF',
    '#00BFFF',
    '#FF1493',
    '#9400D3',
    '#00CED1',
    '#8FBC8B',
    '#483D8B',
    '#2F4F4F',
    '#8B0000',
    '#E9967A',
    '#9932CC',
    '#FF8C00',
    '#8B008B',
    '#006400',
    '#B8860B',
    '#008B8B',
    '#00008B',
    '#00FFFF',
    '#DC143C',
    '#6495ED',
    '#FF7F50',
    '#D2691E',
    '#7FFF00',
    '#0000FF',
  ]
  return colors[Math.floor(Math.random() * colors.length)]
}
